package cn.tedu.ykmall.user.webapi.mapper;

import cn.tedu.ykmall.pojo.userClient.dto.UserInsertDTO;
import cn.tedu.ykmall.pojo.userClient.dto.UserLoginDTO;
import cn.tedu.ykmall.pojo.userClient.entity.User;
import cn.tedu.ykmall.pojo.userClient.vo.UserInfoVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMapper {
    int insert(User user);
    UserInsertDTO getUser(String phone,String nickname);
    UserLoginDTO getUserByNickname(String nickname);
    UserInfoVO getUserInfoByNickname(String nickname);
    int updateUserInfoByNickname(@Param("nickname") String nickname, @Param("userInfoVO") UserInfoVO userInfoVO);
    int updatePassword(@Param("password")String password, @Param("newPassword")String newPassword);
}
